home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6159 < prev    next >
Encoding:
Text File  |  1996-08-05  |  971 b   |  31 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in1.uu.net!allegra!alice!ark
  3. From: ark@research.att.com (Andrew Koenig)
  4. Subject: Re: Java?
  5. Message-ID: <DML3Cq.D0x@research.att.com>
  6. Organization: AT&T Research, Murray Hill NJ
  7. References: <4fe708$8vi@lainet2.lainet.com> <4fi0a0$fkb@news1.usa.pipeline.com>
  8. Date: Sat, 10 Feb 1996 23:46:02 GMT
  9.  
  10. In article <4fi0a0$fkb@news1.usa.pipeline.com> grantp@usa.pipeline.com(Pete) writes:
  11.  
  12. > Very roughly, Java is a subset of the C++ language.
  13.  
  14. VERY roughly.
  15.  
  16. For example, in C++, if you write
  17.  
  18.     x = y;
  19.  
  20. where x and y are ordinary objects, that causes x to be a
  21. copy of y.  If you do the same thing in Java, it causes x
  22. and y to refer to the same object, so that changing a member
  23. of x changes the corresponding member of y.
  24.  
  25. I'm not saying that either treatment is ``better'' than the
  26. other -- each has advantages and disadvantages -- but such
  27. a fundamental difference ought not to be overlooked.
  28. -- 
  29.                 --Andrew Koenig
  30.                   ark@research.att.com
  31.